﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Description;
using System.ServiceModel.Channels;
using CMS.Contracts;

namespace CMS.Channel
{
    public class CMSChannel
    {
        public IProjectBService CreateChannel()
        {
             ChannelFactory<IProjectBService> channelFactory = new ChannelFactory<IProjectBService>("CMSClient");
             IProjectBService channel = channelFactory.CreateChannel();
             return channel;
        }
    }
}

